#include <jni.h>
#include <string>

#include "./base/AndroidLog.h"
#include "base/Grammar.h"

extern "C" JNIEXPORT jstring JNICALL
Java_com_xuanyuan_ndk_NativeLib_stringFromJNI(JNIEnv* env,jobject /* this */) {
    std::string hello = "JNI C++";

    auto *grammar = new Grammar();
    grammar->char2string();
    grammar->string2char();


    LOGD("C++TEST","%s", hello.c_str());
    return env->NewStringUTF(hello.c_str());
}


//extern "C"
//JNIEXPORT jstring JNICALL
//Java_com_xuanyuan_ndk_NativeLib_stringFromJNI(JNIEnv *env, jobject thiz) {
//    // TODO: implement stringFromJNI()
//}